function result = runCalcJ(r)
%RUNCALC Summary of this function goes here
%   Detailed explanation goes here

config;

% Use global parameter:
global isPhi0Cached;

disp('Start calculation...');
tic;
if isPhi0Cached
    buildPhi0Cache();
end
result = j_r(r);
toc;
disp('Calculation done.');

end

